//
//  PartRepairController.m
//  Ghac 4S
//
//  Created by apple on 11-8-29.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import "PartRepairController.h"

@implementation PartRepairController
@synthesize runsInAll;
@synthesize runsUntilLastCare;
@synthesize timeInAll;
@synthesize timeSpendUntilLastCare;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) 
    {
        // Custom initialization
    }
    return self;
}
-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [self.runsUntilLastCare resignFirstResponder];
    [self.runsInAll resignFirstResponder];
    [self.timeSpendUntilLastCare resignFirstResponder];
    [self.timeInAll resignFirstResponder];
}
- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
//    [self.view addSubview:[MyNavigationController mainNavigationBar].view];
    [self.view setBackgroundColor:[UIColor colorWithWhite:0 alpha:0]];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
    self.runsInAll = nil;
    self.runsUntilLastCare = nil;
    self.timeInAll = nil;
    self.timeSpendUntilLastCare = nil;
}
-(void)dealloc
{
    [self viewDidUnload];
    [super dealloc];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
